function callback_dialog(data)
{
if (!data.success) 
	alert("Cannot find\nlocalisation messages\nfor this application")
else
{
	dialog = data.content.split("\n")
}
}

function callback_interface(data)
{
if (!data.success) 
	alert("Cannot find\nlocalisation messages\nfor this application")
else
{
    var interfaces = data.content.split("\n")
	for (var i = 0 ; i < interfaces.length ; i ++)
		if (svgdoc.getElementById("interface" + i.toString()) != null)
			svgdoc.getElementById("interface" + i.toString()).firstChild.data = interfaces[i] + " "
	getDataFile("../localisation/" + language +"/palette_dialog.txt",callback_dialog)
}
}

function callback_popup(data)
{
if (!data.success) 
	alert("Cannot find\nlocalisation messages\nfor this application")
else
{
	popup_message = data.content.split("\n")
	getDataFile("../localisation/" + language +"/palette_interface.txt",callback_interface)
}
}
